package com.itheima.pojo;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import net.minidev.json.annotate.JsonIgnore;

import java.time.LocalDateTime;

/**
 * (User)实体类
 *
 * @author makejava
 * @since 2024-06-19 00:05:08
 */
@Data
public class User {
    @NotNull
    private Integer id;

    private String username;
    @JsonIgnore
    private String password;
    @NotEmpty
    @Pattern(regexp = "^.{3,10}$")
    private String nickname;
    @NotEmpty
    @Email
    private String email;

    private String userPic;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

}

